#ifndef SEARCH_H
#define SEARCH_H

#include <QWidget>
#include<QLabel>
#include<QLineEdit>
#include<QHBoxLayout>
#include<QPixmap>
#include<QEvent>
#include<QPalette>
#include<QRegion>
#include<QFocusEvent>
#include<QPushButton>
#include <QDebug>
#include<QMessageBox>
class Search : public QWidget
{
    Q_OBJECT

public:
    Search(QWidget *parent = nullptr);
    ~Search();

    QHBoxLayout *hlayout_ex;
    QHBoxLayout *hlayout_in;
    QLabel *Search_icon;
    QLineEdit *lineEdit;
    QPushButton *pb_close;

    bool eventFilter(QObject *obj, QEvent *event);

    void applyRoundedMask();

private slots:
    void onCloseButtonClicked();

};
#endif // SEARCH_H
